package sf.model.fields;

import javax.swing.JLabel;

@Deprecated
public class ImageField extends JLabel implements Field {

	private static final long serialVersionUID = 1L;

	private byte[] imageData;

	public ImageField(String name) {
		setName(name);
		setText("<html><b>slika</b></html>");
	}

	public Object getValue() {
		return imageData;
	}

	public void setValue(Object value) {
		setText("<html><b>slika</b></html>");

		imageData = (byte[]) value;
	}

	public void clear() {
		setText("");
	}
}
